<?php
    require "../../class/farm.class.php";
    include "../../function/functionPHP.php";
    $farmID=$_GET["farmID"];
    $farmObj=new farm($farmID);
    $farm=$farmObj->getFarm();
    
    $farmObj->deleteFarm();
    
    header("location:../../?page=member/farm/farm&memID=".$farm["memID"]);